<?php

abstract class openapi_api_function_abstract extends openapi_api_function_base {

    function __construct() {
        // 自动开启session
        $_GET['sess_id'] = $_POST['login_token'];
        $sess = kernel::single('base_session');
        $sess->start();
        $sess->set_sess_expires(720); // 设置登录过期时间
        $this->member_id = $_SESSION['account'][pam_account::get_account_type(app::get('openapi')->app_id)];
    }
}